﻿function formatField(e, t, n) { var r = ""; var i = $(e).text(); if (Date.isValid(i, t)) { var s = Date.parseString(i, t); r = "<span data-livestamp='" + s.getTime() / 1e3 + "'></span>" } else { if (Date.isValid(i, t + " " + n)) { var s = Date.parseString(i, t + " " + n); r = "<span data-livestamp='" + s.getTime() / 1e3 + "'></span>" } else { if (i != null && i.trim() != "") { r = "Date parse error" } } } document.write("<div style='display:block'>"); document.write("<div style='white-space:nowrap'>" + r + "</div>"); document.write("</div>") }